
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <%@include file="includes/header2.jsp" %>



        <div id="mainbody_right">
            <h1>List of Customers currently in Database</h1>

            <table id="companyListTable" border="3">
            <tr >
                <th bgcolor=>Customer ID</th>
                <th bgcolor=>Customer Name</th>
                <th bgcolor=>Surname</th>
                <th bgcolor=>Phone Number</th>
                <th bgcolor=>Email </th>
                <th bgcolor=>CompanyName </th>

            </tr>
            <c:forEach var="customer" begin="0" items="${requestScope.customerList}">
            <tr>
                <td>${customer.id}&nbsp;&nbsp;</td>
                <td>${customer.givenname}&nbsp;&nbsp;</td>
                 <td>${customer.surname}&nbsp;&nbsp;</td>
                <td>${customer.phoneno}&nbsp;&nbsp;</td>
                <td>${customer.email}&nbsp;&nbsp;</td>
                <td>${customer.company.companyname}&nbsp;&nbsp;</td>
              
            </tr>

            </c:forEach>

            </table>

                 <div class="cleaner">&nbsp;</div>
        </div>

    <%@include file="includes/footer.jsp" %>

</html>